<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/8/13
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<div>
    <form  enctype="multipart/form-data" method="post" >

        <input name="id" type="hidden" value="${requestScope.theme.id}">

        <table style="padding-left: 20px; width: 350px; margin: 20px 30px">
            <tr>
                <td style="width: 60px">名称:</td>
                <td><input name="name" type="text" class="easyui-textbox" data-options="required:true" value="${requestScope.theme.name}"/></td>
            </tr>


            <tr>
                <td style="width: 60px">图片:</td>
                <td style="padding-top: 20px">
                    <c:if test="${not empty requestScope.theme.image}">
                        <img src="${requestScope.theme.image}" width="40" height="40">
                    </c:if>
                    <br>
                    <input name="image" type="text" class="easyui-filebox" data-options="required:false,buttonText:'选择图片'"/>

                </td>
            </tr>


            <tr>
                <td>简介</td>
                <td><input name="description" class="easyui-textbox" data-options="multiline:true" style="height: 100px" value="${requestScope.theme.description}"></td>
            </tr>
        </table>


    </form>

    <div style="text-align:center;padding:18px;">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="datatheme.modifySubmit(this)">保 存</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.formClear(this);">清 空</a>
    </div>

</div>


<script>
    $(function(){
        $('tr').each(function(){
            $(this).find("td:first").css('text-align','right');
            $(this).css('line-height','30px');
        });
    });
</script>
